//
//  SEGInviteView.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/2/23.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SEGInviteModel.h"

@protocol SEGInviteViewDelegate <NSObject>
/**
 *  显示邀请码
 */
- (void)showQRCodeView;
/**
 *  显示url邀请
 */
- (void)showUrlInviteView;
/**
 *  显示邀请记录
 */
- (void)showInviteRecord;
/**
 *  显示邀请规则
 */
- (void)showInviteRules;
@end

@interface SEGInviteView : UIScrollView

@property (nonatomic, assign) id<SEGInviteViewDelegate> viewDelegate;

@property (nonatomic, retain) UIView* contentView;

@property (nonatomic, retain) UIImageView* topAdImage;
@property (nonatomic, retain) UIButton* qRCodeInviteButton;//扫码邀请
@property (nonatomic, retain) UIButton* urlInviteButton;//立即邀请邻居（url邀请）
@property (nonatomic, retain) UILabel* inviteCountLabel;//邀请数量
@property (nonatomic, retain) UIButton* inviteRecordButton;//查看邀请详情
@property (nonatomic, retain) UILabel* rulesLabel;
@property (nonatomic, retain) UIButton* showMoreRuleButton;//查看更多邀请规则
@property (nonatomic, retain) UIImageView *bottomBgView;

@property (nonatomic, retain) SEGInviteModel* model;
@end
